package com.leizi.igym.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.time.LocalDate;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-05-03  20:01
 * @Description:
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Schema(description = "课程在商品列表返回的数据格式")
public class CourseGoodsVO {

    @Serial
    private static final long serialVersionUID = 1388585273757735878L;
    @Schema(name = "主键值")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "课程姓名")
    private String goods_name;

    @Schema(name = "课程封面")
    private String goods_small_logo;

    // 只用于显示
    @Schema(name = "课程价格")
    private String goods_price;


}
